package com.youlin.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * 背景模板表
 * @author ${author}
 * @since 2020-05-29
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
public class BygBgTemplate implements Serializable {

    private static final long serialVersionUID=1L;

    // 模板ID
    @ApiModelProperty(value = "模板ID", position = 10)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 模板名称
    @ApiModelProperty(value = "模板名称", position = 20)
    private String name;

    // 背景类型：0-遗像、1-生平、2-相册、3-签到
    @ApiModelProperty(value = "背景类型：0-遗像、1-生平、2-相册、3-签到", position = 30)
    private Integer type;

    // 背景图片url
    @ApiModelProperty(value = "背景图片url", position = 40)
    private String url;

    // 图片宽度_图片高度
    @ApiModelProperty(hidden = true)
    private String wh;

    // 文本内容
    @ApiModelProperty(hidden = true)
    private String text;

    // 父级ID
    @ApiModelProperty(value = "父级ID", position = 50)
    private Integer pid;

    // 所属背景模板ID
    @ApiModelProperty(hidden = true)
    private Integer bgId;

}
